package yto.freemarker.springcloud.feign;

import feign.Param;
import feign.RequestLine;
import org.springframework.cloud.openfeign.FeignClient;
import yto.freemarker.springcloud.config.Configuration1;
import yto.freemarker.springcloud.entity.User;

@FeignClient(name = "service-provider-movie", configuration = Configuration1.class, fallback = UserFeignClientFallback.class)
public interface UserFeignClient {

    @RequestLine("GET /simple/{id}")
    public User findById(@Param("id") Long id);
}